package com.erdos.hyt.mall.mapper;

import java.util.List;

import com.erdos.hyt.mall.model.MallOrderComments;

public interface MallOrderCommentsMapper {
    
    /**
     * 添加订单评论
     * @param mallOrderComments
     * @return
     * @author liurong
     */
    int insertMallOrderComments(MallOrderComments mallOrderComments);

    /**
     * 根据评论ID获取详情
     * @param ocId
     * @return
     * @author liurong
     */
    MallOrderComments getMallOrderCommentsById(Integer ocId);
    /**
     * 根据订单ID获取评论列表
     * @param orderId
     * @return
     * @author liurong
     */
    List<MallOrderComments> getMallOrderCommentsListByOrderId(Integer orderId);

    /**
     * 修改评论内容
     * @param mallOrderComments
     * @return
     * @author liurong
     */
    int updateMallOrderCommentsByTemplate(MallOrderComments mallOrderComments);

}